﻿using System;
using System.Collections.Generic;
using Newtonsoft.Json;

namespace utils
{
    // 定义参数类
    public class Param
    {
        [JsonProperty("k")]
        public string K { get; set; }

        [JsonProperty("t")]
        public string T { get; set; }

        [JsonProperty("b")]
        public string B { get; set; }
    }

    // 定义根类
    public class Root
    {
        [JsonProperty("params")]
        public List<Param> Params { get; set; }

        [JsonProperty("ts")]
        public string Timestamp { get; set; }

        [JsonProperty("lotNumber")]
        public int LotNumber { get; set; }

        [JsonProperty("hexString")]
        public string HexString { get; set; }
    }
}
